package com.zha.boss.enums.resp;

public enum RespCode {
    OK(1000,"业务处理成功"),
    UNKNOWN(1001,"请稍后重试"),
    REQUEST_PARAM_ERR(1002,"请求参数无效"),

    PMS_LOGIN_FAIL(2000,"登录名称或密码错误"),
    PMS_OPERATOR_NULL(2001,"无效的登录用户"),
    PMS_JWT_SAVE_REDIS(2002,"登录系统异常"),
    PMS_JWT_INVALID(2003,"登录状态失效，请重新登录"),


    USER_LOGIN_NAME_EXITS(3000,"登录名称已经存在，请更换"),
    USER_NOT_EXISTS(3001,"无此商户"),

    //支付
    PAY_PRODUCT_CODE_EXISTS(4000,"支付产品编码已经存在"),
    PAY_PRODUCT_NAME_EXISTS(4001,"支付产品名称已经存在"),
    PAY_WAY_CONFIG_EXISTS(4002,"支付产品已经配置此支付方式或类型"),

    PAY_PRODUCT_NONE(4003,"支付产品无效"),
    CONFIG_USER_PRODUCT_EXISTS(4004,"商户已配置此产品"),

    ;

    private int code;
    private String msg;

    RespCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
